#include "vector4.h"

vector4::vector4(void)
{
}

vector4::vector4(double wp, double xp, double yp, double zp){
        w = wp;
        x = xp;
        y = yp;
        z = zp;
}

vector4::~vector4(void)
{
}


double vector4::getW(){ return w; }
double vector4::getX(){ return x; }
double vector4::getY(){ return y; }
double vector4::getZ(){ return z; }
void vector4::setW(double i){ w = i; }
void vector4::setX(double i){ x = i; }
void vector4::setY(double i){ y = i; }
void vector4::setZ(double i){ z = i; }
vector4 vector4::operator +(vector4 rhs){
        return vector4(w+rhs.getW(),x+rhs.getX(), y+rhs.getY(), z+rhs.getZ());
}
vector4 vector4::operator -(vector4 rhs){
        return vector4(w-rhs.getW(), x-rhs.getX(), y-rhs.getY(), z-rhs.getZ());
}
bool vector4::operator ==(vector4 rhs){
        if(x==rhs.getW() && x==rhs.getX() && y==rhs.getY() && z==rhs.getZ())
                return true;
        return false;
}
